package com.springboot.application.service.impl;

import com.springboot.application.dao.UserDao;
import com.springboot.application.entity.UserEntity;
import com.springboot.application.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author zhengzihong
 * @version 1.0.0
 * @date 2018/11/1
 * @Description
 */
@Service
public class UserServiceImpl implements UserService {

    @Resource
    private UserDao userDao;

    @Override
    public UserEntity getUserInfoById(Long id) {
        return userDao.getUserInfoById(id);
    }

    @Override
    public List<UserEntity> findAll() {
        return userDao.fingAll();
    }
}
